package com.service.impl;

import com.dao.EmpDao;
import com.entity.Employee;
import com.service.EmpService;

public class EmpServiceImpl implements EmpService {
    private EmpDao dao;

    public EmpDao getDao() {
        return dao;
    }

    public void setDao(EmpDao dao) {
        this.dao = dao;
    }

    @Override
    public Employee getNameById(Integer id) {
        return getDao().getNameById(id);
    }
}
